'''This file defines several constants used in the game.'''

#Math constants
from math import pi, radians
pi_x_2    = radians(360)
pi_over_2 = radians(90)

#Map limits
map_x_limit = 799
map_y_limit = 599

#Banner limits
banner_w = 300
banner_h = 200

#Cooldown values (60 = 1 second)
ATTACK_COOLDOWN        = 30
STRIKE_COOLDOWN        = 60
INVINCIBILITY_COOLDOWN = 120
ENDGAME_COOLDOWN       = 240

#Mage
MAGE_HP        = 5
MAGE_SPEED     = 3.0
MAGE_RADIUS    = 15
MAGE_RADIUS_2  = 17
EYE_OFFSET     = 7.0
EYE_ANGLE      = 0.9
EYE_SIZE       = 2
EYE_SIZE_2     = 4
HAND_SIZE      = 4

BARRIER_RADIUS = 20

HP_SIZE        = 6
HP_SIZE_2      = 9
HP_SIZE_4      = 18

#Colors
BLACK            = (0, 0, 0)
TRANSPARENT      = (255, 0, 255)
WHITE            = (255, 255, 255)
GRAY             = (100, 100, 100)
YELLOW           = (155, 155, 0)
RED              = (255, 0, 0)

BARRIER_COLOR    = (100, 255, 255)
BURNT_COLOR      = (115, 115, 115)
INVINCIBLE_COLOR = (230, 195, 100)

#Input Types
KEYBOARD = 0
JOYSTICK = 1
NETWORK  = 2

#Action IDs (for input methods)
SWORD      = 0
FIREBALL   = 1
E_BOLT     = 2
MMISSILE   = 3
MENU       = 4
SCREENSHOT = 5

#Directionals
UP         = 0
RIGHT      = 1
DOWN       = 2
LEFT       = 3

#Projectiles
FIREBALL_SPEED  = 8.0
FIREBALL_RADIUS = 15
FIREBALL_COLOR  = (255,50,50)

FIREBALL_B_SPEED  = 8.0
FIREBALL_B_RADIUS = 7
FIREBALL_B_COLOR  = (255,100,100)

E_BOLT_SPEED  = 10.0
E_BOLT_RADIUS = 15
E_BOLT_COLOR  = (50,150,255)

MMISSILE_SPEED        = 6.0
MMISSILE_RADIUS       = 10
MMISSILE_TAILRADIUS   = 5
MMISSILE_TAILLENGTH   = 5
MMISSILE_COLOR        = (70,255,70)
MMISSILE_TURN_SPEED   = 0.02

#Sword attack
SWING_STEP_TIME      = 5
SWING_TIME           = 2*SWING_STEP_TIME
SWORD_START_RADIUS   = MAGE_RADIUS + 5
SWORD_END_RADIUS     = MAGE_RADIUS + 35
SWORD_ARC            = radians(150)
SWORD_ARC_OVER_2     = SWORD_ARC/2
SWORD_COLOR          = (200, 200, 200)
